const mysql = require('mysql');

const db = mysql.createConnection({
  host     : '43.139.15.52',
  user     : 'root',
  password : 'root',
  database : 'todolist'
});
db.connect(err => {
  if (err) throw err
  console.log("connect mysql succsess");
})

module.exports = db
